package com.test.ScannerDemo;

import java.util.Scanner;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/06/08 13:52
 **/
public class ScannerDemo {
    public static void main(String[] args) {
        System.out.println("这是一个输入演示程序，退出请输入exit");
        while (true) {
            Scanner scanner = new Scanner(System.in);
            String s = scanner.nextLine();
            System.out.println(s);
            if (s.equals("exit")) {
                break;
            }
        }
    }
}
